
from django.urls import path, re_path
from django.contrib.auth.decorators import permission_required
from . import views

app_name = 'account'
urlpatterns = [

    path('login/', views.user_login, name='login'),
    path('logout/', views.user_logout, name='logout'),

    path('', views.dashboard, name='dashboard'),
    path('password-change/',views.password_change, name='password_change'),
    path('password-change/done/',views.password_change_done,name='password_change_done'),
    path('register/', views.register, name='register'),
    path('edit/', views.edit, name='edit'),
    path('users/', views.user_list, name='user_list'),
    path('users/(?P<username>[-\w]+)/',views.user_detail, name='user_detail'),
]


